<?php 
 require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $is_checkout = 0;
    $conracts = query('SELECT * FROM contracts 
      LEFT JOIN clients ON 
        contracts.client_id=clients.id 
      LEFT JOIN apartments ON 
        contracts.apartment_name=apartments.apart_name
      LEFT JOIN companies ON 
        contracts.company_id=companies.company_id WHERE contracts.contract_id=?',$_GET['id']);
    $contract = $conracts[0];
    
    
	   renderWithoutHeader("service_vouchers/create.php", array("contract"=>$contract,"payment_method"=>$payment_method));

	}
   
 
?>